const cloud = require("@alipay/faas-server-sdk");
cloud.init({});
exports.main = async (event, context) => {
  const bizContent = {
    "out_trade_no": event.outTradeNo,
    "trade_no": event.tradeNo,
    "out_request_no":event.outRequestNo,
    "query_options":event.queryOptions
  };
  const res = await cloud.openapi.alipayTradeFastpayRefundQuery.request({
    bizContent: JSON.stringify(bizContent)
  });
  console.log('云调用结果:', res);
  return res;
};